<?php
//声明一个数组的两种方式
$scores = [59,66,88,99];
var_dump($scores);
echo "<br />";
$scores2= [1=>59,2=>89,5=>49];
var_dump($scores2);

echo "<br />";
//声明对象
class Student{
    //声明字段
    public $name;
    public $age;
    public $sex;
    //php构造有参函数
    public function __construct($name,$age,$sex)
    {
        $this->name=$name;
        $this->age=$age;
        $this->sex=$sex;
    }
}
    $Student = new Student("wyl","20","男");
    var_dump($Student);